package com.kamenrider.adventureaffiliated.procedures;

import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;

import com.kamenrider.adventureaffiliated.entity.AnotherBuild2019Entity;
import com.kamenrider.adventureaffiliated.entity.AnotherBuild2017Entity;

public class AnotherBuild2017ShiTiChuShiShengChengShiProcedure {
	public static void execute(Entity entity) {
		if (entity == null)
			return;
		if (entity instanceof LivingEntity _entity)
			_entity.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SLOWDOWN, 60, 17, (false), (false)));
		if (entity instanceof AnotherBuild2017Entity) {
			((AnotherBuild2017Entity) entity).setAnimation("poss");
		}
		if (entity instanceof AnotherBuild2019Entity) {
			((AnotherBuild2019Entity) entity).setAnimation("poss");
		}
	}
}
